package com.example.a10928.weifriend.ui.rank_list;

import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.a10928.weifriend.R;
import com.example.a10928.weifriend.databinding.FragmentFindBinding;
import com.example.a10928.weifriend.http.api.Api;
import com.example.a10928.weifriend.ui.BaseFragment;
import com.example.a10928.weifriend.ui.home.WebViewActivity;
import com.example.a10928.weifriend.ui.home.WebViewFragment;

public class FindFragment extends BaseFragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
       FragmentFindBinding mBinding = DataBindingUtil.inflate(inflater,R.layout.fragment_find,container,false);
        WebViewFragment fragment = new WebViewFragment();
        fragment.url = Api.H5_FIND;
        FragmentManager fm = getChildFragmentManager();
        FragmentTransaction transaction = fm.beginTransaction();
        transaction.replace(mBinding.findView.getId(),fragment,"123" );
        transaction.commit();
        return mBinding.getRoot();

    }



}
